<template>
  <div class="home-container">
    <h4>home 组件</h4>
    <!-- 头部组件 -->
    <div class="home-main-box">
      <!-- 侧边栏组件 -->
      <div class="home-main-body">
        <!-- 声明侧导航的子路由占位符 -->
      </div>
    </div>
  </div>
</template>

<script>
// 头部区域组件
import Header from './subcomponents/Header.vue'
// 左侧边栏组件
import Aside from './subcomponents/Aside.vue'

export default {
  name: 'Home',
  // 注册组件
  components: {
    Header,
    Aside,
  },
}
</script>

<style lang="less" scoped>
.home-container {
  height: 100%;
  display: flex;
  flex-direction: column;

  .home-main-box {
    height: 100%;
    display: flex;
    .home-main-body {
      padding: 15px;
      flex: 1;
    }
  }
}
</style>